package org.example.member.service;


import org.example.core.utils.R;
import org.example.member.entity.MemberReceiveAddressEntity;

import java.util.List;

/**
 * @author xiaojie_cc
 * @version 1.0
 */
public interface MemberReceiveAddressService{

    // 获取对应会员的收货地址
    List<MemberReceiveAddressEntity> queryAddressByMemberId();

    // 根据地址id查询地址信息
    MemberReceiveAddressEntity queryAddressInfoById(Long addressId);

    // 修改地址信息
    int updateMemberAddress(Long id, MemberReceiveAddressEntity memberReceiveAddress);

    // 新增地址
    int addMemberAddress(MemberReceiveAddressEntity memberReceiveAddress);

    // 删除地址
    int deleteAddressById(Long id);
}

